package com.ang.generic.genericClass.test01;

import lombok.Data;

/**
 * 一个普通的泛型类
 * @param <T>
 */
@Data
public class GenericTest<T> {
    private String msg;
    private T data;

    public GenericTest(T data){
        this.msg = "no message is good message";
        this.data = data;
    }

    public GenericTest(String msg, T data){
        this.msg = msg;
        this.data = data;
    }
}
